<div class="block-content">
    <div class="img-content">
    <div class="inner-profile" 
         onmouseover="$(this).find('.bt-addfriend').show()"
         onmouseout="$(this).find('.bt-addfriend').hide()"
         >
        <span class="small-avatar"><img src="data/avatars/<?php echo $entry['Avatar'] ?>" width="32px" height="32px" /></span>
        <span class="user-name text-info">
            <strong><a href='?com=user&action=profile&id=<?php echo $entry['UserId'] ?>'>
                <?php echo $entry['Fullname'] ?></a>
            </strong>
            <?php if($_SESSION['UID'] !== $entry['UserId']): ?>
                <?php if(existsRequest($_SESSION['UID'], $entry['UserId'])): ?>
                    <a href="#" class="btn-small btn bt-addfriend">
                        +Đợi xác nhận....
                    </a>
                <?php else: ?>
                    <a href="?com=friend&fid=<?php echo $entry['UserId'] ?>" 
                       class="btn-small btn bt-addfriend" 
                       onclick="return request_friend(this)">
                        +Kết bạn
                    </a>
                <?php endif; ?>
            <?php endif; ?>
        </span>
    </div>
    <img src="data/images/beach.jpg" width="600px" height="400px" />
    <a href="#"><h4 class="title"><?php echo $entry['Title']; ?></h4></a>
    </div>
    <div class="txt-content">
        <div class="well well-small">
            <p><em class="muted">Đăng lúc <?php echo date('H:i\' \n\g\à\y d/m/Y', strtotime($entry['DatePosted'])); ?></em></p>
            <?php echo isset($entry['Description'])?$entry['Description']:'' ?>
        </div>
        <ul class="nav nav-pills">
            <li>
                <a href="#" id="bt-reply">
                    Repply <span class="badge badge-success"><?php echo count($comments) ?></span>
                </a>
            </li>            
            <li style="float: right">
                <a onclick="return vote(this)" href="?com=content&action=post&subaction=vote&id=<?php echo $entry['EntryId'] ?>">Vote 
                    <span class="badge badge-success"><?php echo $entry['Vote'] ?></span>
                </a>
            </li>
        </ul>
        <div>
            <div class="list-comments">
                <?php
                include 'components/content/comment/view_list.php';
                ?>
            </div>
            <?php 
                include 'components/content/comment/view_form.php';
            ?>
        </div>
    </div>
    <div class="clearfix"></div>
</div>
<hr>